require.config({
  paths:{
    'swiper': '../../assets/js/lib/swiper.min',
    'cookie': '../../assets/js/lib/jquery.cookie',
    //
    'common': '../../assets/js/lib/common.min',
    'lodash': '../../assets/js/lib/common/lodash.min',
    'fastclick': '../../assets/js/lib/common/fastclick',
    'extend': '../../assets/js/lib/common/a', // 先加载
    'toast': '../../assets/js/lib/common/toast',// toast提示
    'dialog': '../../assets/js/lib/common/dialog',// 普通弹窗
    'actions': '../../assets/js/lib/common/actions',// 底部菜单选择
    'popup': '../../assets/js/lib/common/popup',// 信息弹窗，底部弹窗
    'select': '../../assets/js/lib/common/select',// 单选
    'calendar': '../../assets/js/lib/common/calendar',// 日历
    'linkage': '../../assets/js/lib/common/linkage', // 点击联动选择
    'popstate': '../../assets/js/lib/common/popstate', // 微信返回事件
    'scroll': '../../assets/js/lib/common/scroll', // 返回顶部
    'formedit': '../../assets/js/lib/common/formedit', // 表单弹出编辑
    'refresh': '../../assets/js/lib/common/refresh', // 下拉刷新
    'loadmore': '../../assets/js/lib/common/loadmore', // 下拉刷新
    'clipboard': '../../assets/js/lib/common/clipboard', // 下拉刷新
    // 个别事件绑定
    'other': '../../assets/js/lib/common/_other',
    // module
    'test': '../../assets/js/module/test',
    'math': '../../assets/js/module/math',
    'dateUtil': '../../assets/js/module/dateUtil',
    'rawCitiesData': '../../assets/js/module/rawCitiesData', // 城市选择
    'contact': '../../assets/js/module/contact', // 联系人选择
    'serviceSelect': '../../assets/js/module/serviceSelect', // 可选服务
    'rangeSelect': '../../assets/js/lib/common/jquery.range', // 范围选择插件
    'slideLeft': '../../assets/js/lib/common/slideleft', // 左滑删除
    'countdown': '../../assets/js/lib/common/countdown',
  },
  shim: {
    dialog: ['extend'],
    actions: ['extend'],
    popup: ['extend'],
    select: ['extend'],
    calendar: ['extend'],
    linkage: ['extend', 'rawCitiesData'],
    scroll: ['extend'],
    formedit: ['select'],
    refresh: ['extend'],
    loadmore: ['extend'],
    //
    contact: ['formedit'],
    serviceSelect: ['lodash','popstate']
  }
});